
/**
 *
 * @author Bora SAYINER
 * @since Dec 28, 2014 12:46:25 PM
 * @version 1.0
 */
public class JoinSample {

	public static void main(String[] args) throws InterruptedException {
		System.out.println("Aplication Started");
		CounterThread counterThread = new CounterThread();
		counterThread.setDaemon(true);
		counterThread.start();
		counterThread.join(3000);
		// while(counterThread.isAlive()){} // Thread pooling
		System.out.println("Aplication Finished");
	}
}
